package com.laotou99.wmsjjj.wmsjjj;

import static org.junit.Assert.assertEquals;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import com.alibaba.fastjson.JSONObject;
import com.laotou99.wmsjjj.wmsjjj.service.INVService;

@RunWith(SpringRunner.class)
@SpringBootTest
public class WmsjjjIVNTests1 {
	
	@Autowired
	INVService invService;

	@Test
	public void contextLoads() {
		System.out.println("first load");
	}
	
	@Before
	public void before() {
		System.out.println("before");
	}
	
	@After
	public void after() {
		System.out.println("after()");
	}
	
	//显示一个
	//显示全部
	@Test
	public void showList() {
		System.out.println("showList()");
		JSONObject jo1 = new JSONObject();
		String result = "";
		try {
			result = invService.showList(jo1);
		} catch (Exception e) {
			e.printStackTrace();
		}
		System.out.println("result-=>"+result);
		assertEquals(1+1, 2);
	}
	//新增
	//修改
	//删除
	
	
}
